package com.bangdao.service.edu.service;

import com.bangdao.service.edu.entity.Teacher;
import com.bangdao.service.edu.entity.query.TeacherQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author stive
 * @since 2020-11-03
 */
public interface TeacherService extends IService<Teacher> {

    /**
     * 分页查询讲师列表接口
     * @param page
     * @param limit
     * @param teacherQuery
     * @return
     */
    IPage<Teacher> selectPage(Long page, Long limit, TeacherQuery teacherQuery);

    /**
     * 根据左关键字查询讲师名列表
     * @param key
     * @return
     */
    List<Map<String, Object>> selectNameListByKey(String key);

    /**
     * 删除图片
     * @param id
     */
    boolean removeAvatarById(String id);
}
